.class public Lcom/netease/newsreader/activity/MyCommentsActivity;
.super Lcom/netease/newsreader/activity/BaseTabActivity;
.source "MyCommentsActivity.java"

# interfaces
.implements Landroid/widget/TabHost$OnTabChangeListener;
.implements Landroid/view/View$OnClickListener;
.implements Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/netease/newsreader/activity/MyCommentsActivity$OnTabSelectedListener;
    }
.end annotation


# static fields
.field private static final TAB_TAG_MYCOMMENT:Ljava/lang/String; = "mycomment"

.field private static final TAB_TAG_REPLYME:Ljava/lang/String; = "replyme"


# instance fields
.field private mAccount:Ljava/lang/String;

.field mHandler:Landroid/os/Handler;

.field private mLayoutInflater:Landroid/view/LayoutInflater;

.field private mMenu:Lcom/netease/newsreader/view/MenuPopup;

.field private mMenuClickListener:Landroid/view/View$OnClickListener;

.field private mSPref:Landroid/content/SharedPreferences;

.field private mTabHost:Landroid/widget/TabHost;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 32
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseTabActivity;-><init>()V

    .line 217
    new-instance v0, Lcom/netease/newsreader/activity/MyCommentsActivity$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/MyCommentsActivity$1;-><init>(Lcom/netease/newsreader/activity/MyCommentsActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenuClickListener:Landroid/view/View$OnClickListener;

    .line 314
    new-instance v0, Lcom/netease/newsreader/activity/MyCommentsActivity$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/MyCommentsActivity$2;-><init>(Lcom/netease/newsreader/activity/MyCommentsActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mHandler:Landroid/os/Handler;

    .line 32
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/MyCommentsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 154
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->logout()V

    return-void
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/MyCommentsActivity;)Lcom/netease/newsreader/view/MenuPopup;
    .locals 1
    .parameter

    .prologue
    .line 215
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/MyCommentsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 161
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->onLoginChanged()V

    return-void
.end method

.method private addTabSpec(Landroid/widget/TabHost;Ljava/lang/String;Landroid/content/Intent;I)V
    .locals 6
    .parameter "tabHost"
    .parameter "tag"
    .parameter "intent"
    .parameter "title"

    .prologue
    .line 98
    invoke-virtual {p1, p2}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    .line 99
    .local v0, spec:Landroid/widget/TabHost$TabSpec;
    invoke-virtual {v0, p3}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    .line 101
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mLayoutInflater:Landroid/view/LayoutInflater;

    const v4, 0x7f030012

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 102
    .local v2, view:Landroid/view/View;
    const v3, 0x7f0c005d

    invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 103
    .local v1, tabIndicator:Landroid/widget/TextView;
    invoke-virtual {v1, p4}, Landroid/widget/TextView;->setText(I)V

    .line 104
    invoke-virtual {v0, v2}, Landroid/widget/TabHost$TabSpec;->setIndicator(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;

    .line 105
    invoke-virtual {p1, v0}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 106
    return-void
.end method

.method private applyThemeForMenu(Landroid/widget/LinearLayout;)V
    .locals 3
    .parameter "menuView"

    .prologue
    .line 289
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 290
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v1, 0x7f02007e

    invoke-virtual {v0, p0, p1, v1}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 291
    const/4 v1, 0x1

    invoke-virtual {p1, v1}, Landroid/widget/LinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 292
    const v2, 0x7f080011

    .line 291
    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 294
    return-void
.end method

.method private init()V
    .locals 6

    .prologue
    .line 60
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->initMenu()V

    .line 63
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v3

    iput-object v3, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mTabHost:Landroid/widget/TabHost;

    .line 64
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mTabHost:Landroid/widget/TabHost;

    invoke-virtual {v3, p0}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V

    .line 66
    const v3, 0x1020013

    invoke-virtual {p0, v3}, Lcom/netease/newsreader/activity/MyCommentsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/netease/newsreader/view/MyTabWidget;

    .line 67
    .local v2, tabWidget:Lcom/netease/newsreader/view/MyTabWidget;
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mLayoutInflater:Landroid/view/LayoutInflater;

    const v4, 0x7f030013

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 68
    .local v0, animationView:Landroid/view/View;
    new-instance v3, Lcom/netease/newsreader/activity/MyCommentsActivity$3;

    invoke-direct {v3, p0}, Lcom/netease/newsreader/activity/MyCommentsActivity$3;-><init>(Lcom/netease/newsreader/activity/MyCommentsActivity;)V

    invoke-virtual {v2, v0, v3}, Lcom/netease/newsreader/view/MyTabWidget;->setAnimaitonView(Landroid/view/View;Lcom/netease/newsreader/view/MyTabWidget$AnimationViewCallback;)V

    .line 91
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/netease/newsreader/activity/MyReplyActivity;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 92
    .local v1, intent:Landroid/content/Intent;
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v4, "mycomment"

    const v5, 0x7f0b001c

    invoke-direct {p0, v3, v4, v1, v5}, Lcom/netease/newsreader/activity/MyCommentsActivity;->addTabSpec(Landroid/widget/TabHost;Ljava/lang/String;Landroid/content/Intent;I)V

    .line 93
    new-instance v1, Landroid/content/Intent;

    .end local v1           #intent:Landroid/content/Intent;
    const-class v3, Lcom/netease/newsreader/activity/ReplyMeActivity;

    invoke-direct {v1, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 94
    .restart local v1       #intent:Landroid/content/Intent;
    iget-object v3, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mTabHost:Landroid/widget/TabHost;

    const-string v4, "replyme"

    const v5, 0x7f0b001d

    invoke-direct {p0, v3, v4, v1, v5}, Lcom/netease/newsreader/activity/MyCommentsActivity;->addTabSpec(Landroid/widget/TabHost;Ljava/lang/String;Landroid/content/Intent;I)V

    .line 95
    return-void
.end method

.method private initMenu()V
    .locals 3

    .prologue
    .line 208
    new-instance v0, Lcom/netease/newsreader/view/MenuPopup;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/view/MenuPopup;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    .line 209
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    const v1, 0x7f030041

    invoke-virtual {v0, v1}, Lcom/netease/newsreader/view/MenuPopup;->setContentView(I)V

    .line 210
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    iget-object v1, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenuClickListener:Landroid/view/View$OnClickListener;

    const/4 v2, 0x3

    new-array v2, v2, [I

    fill-array-data v2, :array_0

    invoke-virtual {v0, v1, v2}, Lcom/netease/newsreader/view/MenuPopup;->setOnClickListener(Landroid/view/View$OnClickListener;[I)V

    .line 213
    return-void

    .line 210
    nop

    :array_0
    .array-data 0x4
        0xd2t 0x0t 0xct 0x7ft
        0x1t 0x1t 0xct 0x7ft
        0xd5t 0x0t 0xct 0x7ft
    .end array-data
.end method

.method private isLogin()Z
    .locals 1

    .prologue
    .line 143
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mAccount:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private isLoginChanged()Z
    .locals 2

    .prologue
    .line 147
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getAccount()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mAccount:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method

.method private logout()V
    .locals 3

    .prologue
    .line 155
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->isLogin()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 156
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mSPref:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "account"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 157
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->onLoginChanged()V

    .line 159
    :cond_0
    return-void
.end method

.method private onLoginChanged()V
    .locals 5

    .prologue
    const v4, 0x7f0c005a

    const v3, 0x1020012

    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 162
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getAccount()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mAccount:Ljava/lang/String;

    .line 163
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->isLogin()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 164
    invoke-virtual {p0, v3, v1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 165
    invoke-virtual {p0, v4, v2}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 171
    :goto_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->updateTitle(Ljava/lang/String;)V

    .line 172
    return-void

    .line 167
    :cond_0
    invoke-virtual {p0, v3, v2}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    .line 168
    invoke-virtual {p0, v4, v1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setViewVisibility(II)V

    goto :goto_0
.end method


# virtual methods
.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 1
    .parameter "event"

    .prologue
    .line 119
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->isLogin()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    invoke-virtual {v0, p1}, Lcom/netease/newsreader/view/MenuPopup;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 120
    const/4 v0, 0x1

    .line 123
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseTabActivity;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public getAccount()Ljava/lang/String;
    .locals 3

    .prologue
    .line 151
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mSPref:Landroid/content/SharedPreferences;

    const-string v1, "account"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getSharedPreferences()Landroid/content/SharedPreferences;
    .locals 1

    .prologue
    .line 139
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mSPref:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 202
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->finish()V

    .line 203
    return-void
.end method

.method public onApplyTheme()V
    .locals 14

    .prologue
    const v13, 0x7f0c005c

    const v12, 0x7f080027

    .line 249
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseTabActivity;->onApplyTheme()V

    .line 250
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v8

    .line 251
    .local v8, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v10, 0x7f0c0008

    const v11, 0x7f080025

    invoke-virtual {v8, p0, v10, v11}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 252
    const v10, 0x7f0c006f

    const v11, 0x7f020089

    invoke-virtual {v8, p0, v10, v11}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 253
    const v10, 0x7f0c0007

    const v11, 0x7f0200fe

    invoke-virtual {v8, p0, v10, v11}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 254
    const v10, 0x7f0c0059

    const v11, 0x7f080029

    invoke-virtual {v8, p0, v10, v11}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/app/Activity;II)V

    .line 255
    const v10, 0x7f020086

    invoke-virtual {v8, p0, v13, v10}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 256
    invoke-virtual {v8, p0, v13, v12}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 257
    const v10, 0x7f0c005b

    invoke-virtual {v8, p0, v10, v12}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 259
    const v10, 0x1020013

    invoke-virtual {p0, v10}, Lcom/netease/newsreader/activity/MyCommentsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Lcom/netease/newsreader/view/MyTabWidget;

    .line 260
    .local v7, tabWidget:Lcom/netease/newsreader/view/MyTabWidget;
    const v10, 0x7f0200ff

    invoke-virtual {v8, p0, v7, v10}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 261
    invoke-virtual {v7}, Lcom/netease/newsreader/view/MyTabWidget;->getAnimationView()Landroid/view/View;

    move-result-object v0

    .line 262
    .local v0, animationView:Landroid/view/View;
    if-eqz v0, :cond_0

    .line 264
    const v10, 0x7f0c005e

    invoke-virtual {v0, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v10

    const v11, 0x7f02001d

    .line 263
    invoke-virtual {v8, p0, v10, v11}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 266
    :cond_0
    invoke-virtual {v7}, Lcom/netease/newsreader/view/MyTabWidget;->getTabCount()I

    move-result v1

    .line 267
    .local v1, count:I
    const/4 v2, 0x0

    .local v2, i:I
    :goto_0
    if-lt v2, v1, :cond_2

    .line 273
    iget-object v10, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    invoke-virtual {v10}, Lcom/netease/newsreader/view/MenuPopup;->getContentView()Landroid/view/View;

    move-result-object v9

    .line 274
    .local v9, view:Landroid/view/View;
    if-eqz v9, :cond_1

    .line 275
    const v10, 0x7f0c00d2

    invoke-virtual {v9, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 276
    .local v5, menu_refresh:Landroid/widget/LinearLayout;
    const v10, 0x7f0c0101

    invoke-virtual {v9, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 277
    .local v4, menu_logout:Landroid/widget/LinearLayout;
    const v10, 0x7f0c00d5

    invoke-virtual {v9, v10}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    .line 279
    .local v6, menu_setting:Landroid/widget/LinearLayout;
    invoke-direct {p0, v5}, Lcom/netease/newsreader/activity/MyCommentsActivity;->applyThemeForMenu(Landroid/widget/LinearLayout;)V

    .line 280
    invoke-direct {p0, v4}, Lcom/netease/newsreader/activity/MyCommentsActivity;->applyThemeForMenu(Landroid/widget/LinearLayout;)V

    .line 281
    invoke-direct {p0, v6}, Lcom/netease/newsreader/activity/MyCommentsActivity;->applyThemeForMenu(Landroid/widget/LinearLayout;)V

    .line 285
    .end local v4           #menu_logout:Landroid/widget/LinearLayout;
    .end local v5           #menu_refresh:Landroid/widget/LinearLayout;
    .end local v6           #menu_setting:Landroid/widget/LinearLayout;
    :cond_1
    const v10, 0x7f0c0002

    const v11, 0x7f020041

    invoke-virtual {v8, p0, v10, v11}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 286
    return-void

    .line 268
    .end local v9           #view:Landroid/view/View;
    :cond_2
    invoke-virtual {v7, v2}, Lcom/netease/newsreader/view/MyTabWidget;->getChildAt(I)Landroid/view/View;

    move-result-object v10

    .line 269
    const v11, 0x7f0c005d

    invoke-virtual {v10, v11}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    .line 268
    check-cast v3, Landroid/widget/TextView;

    .line 270
    .local v3, indicatorView:Landroid/widget/TextView;
    const v10, 0x7f0800bf

    invoke-virtual {v8, p0, v3, v10}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/content/Context;Landroid/widget/TextView;I)V

    .line 267
    add-int/lit8 v2, v2, 0x1

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3
    .parameter "v"

    .prologue
    .line 188
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    .line 190
    .local v0, id:I
    packed-switch v0, :pswitch_data_0

    .line 199
    :goto_0
    return-void

    .line 192
    :pswitch_0
    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/netease/newsreader/activity/AccountLogin;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 193
    .local v1, intent:Landroid/content/Intent;
    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0

    .line 190
    nop

    :pswitch_data_0
    .packed-switch 0x7f0c005c
        :pswitch_0
    .end packed-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 1
    .parameter "savedInstanceState"

    .prologue
    .line 49
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseTabActivity;->onCreate(Landroid/os/Bundle;)V

    .line 50
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->requestWindowFeature(I)Z

    .line 51
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mLayoutInflater:Landroid/view/LayoutInflater;

    .line 53
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mSPref:Landroid/content/SharedPreferences;

    .line 54
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mSPref:Landroid/content/SharedPreferences;

    invoke-interface {v0, p0}, Landroid/content/SharedPreferences;->registerOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    .line 55
    const v0, 0x7f030011

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->setContentView(I)V

    .line 56
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->init()V

    .line 57
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 128
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseTabActivity;->onDestroy()V

    .line 129
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mSPref:Landroid/content/SharedPreferences;

    invoke-interface {v0, p0}, Landroid/content/SharedPreferences;->unregisterOnSharedPreferenceChangeListener(Landroid/content/SharedPreferences$OnSharedPreferenceChangeListener;)V

    .line 130
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mMenu:Lcom/netease/newsreader/view/MenuPopup;

    invoke-virtual {v0}, Lcom/netease/newsreader/view/MenuPopup;->dismiss()V

    .line 131
    return-void
.end method

.method protected onResume()V
    .locals 1

    .prologue
    .line 110
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseTabActivity;->onResume()V

    .line 112
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->isLoginChanged()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 113
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->onLoginChanged()V

    .line 115
    :cond_0
    return-void
.end method

.method public onSharedPreferenceChanged(Landroid/content/SharedPreferences;Ljava/lang/String;)V
    .locals 2
    .parameter "sharedPreferences"
    .parameter "key"

    .prologue
    .line 302
    const-string v0, "account"

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 303
    invoke-direct {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->isLoginChanged()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 304
    iget-object v0, p0, Lcom/netease/newsreader/activity/MyCommentsActivity;->mHandler:Landroid/os/Handler;

    new-instance v1, Lcom/netease/newsreader/activity/MyCommentsActivity$4;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/MyCommentsActivity$4;-><init>(Lcom/netease/newsreader/activity/MyCommentsActivity;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 312
    :cond_0
    return-void
.end method

.method public onTabChanged(Ljava/lang/String;)V
    .locals 1
    .parameter "tabId"

    .prologue
    .line 135
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/netease/newsreader/activity/MyCommentsActivity$OnTabSelectedListener;

    invoke-interface {v0}, Lcom/netease/newsreader/activity/MyCommentsActivity$OnTabSelectedListener;->onTabSlected()V

    .line 136
    return-void
.end method

.method public setViewVisibility(II)V
    .locals 1
    .parameter "viewid"
    .parameter "visible"

    .prologue
    .line 175
    invoke-virtual {p0, p1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 176
    .local v0, view:Landroid/view/View;
    if-eqz v0, :cond_0

    .line 177
    invoke-virtual {v0, p2}, Landroid/view/View;->setVisibility(I)V

    .line 179
    :cond_0
    return-void
.end method

.method public updateTitle(Ljava/lang/String;)V
    .locals 2
    .parameter "name"

    .prologue
    .line 182
    const v1, 0x7f0c0008

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 183
    .local v0, title:Landroid/widget/TextView;
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .end local p1
    :goto_0
    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 184
    return-void

    .line 183
    .restart local p1
    :cond_0
    const v1, 0x7f0b001c

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/MyCommentsActivity;->getText(I)Ljava/lang/CharSequence;

    move-result-object p1

    goto :goto_0
.end method
